<script type="text/javascript">
(function($){

	$(".post-article").click(function(){
     window.location=$(this).find("a").attr("href");
     return false;
	});

	var aboveHeight = Math.abs($('.header-bar').outerHeight() - $('.header-bar').outerHeight() - $('.header-nav').outerHeight());
	$(window).scroll(function() {
		if ($(window).scrollTop() >= aboveHeight) {
			$('nav.header-nav').addClass('sticky');
			<?php if (is_admin_bar_showing()) : ?>
				$('nav.header-nav').addClass('ab');
			<?php endif; ?>
		} else {
			$('nav.header-nav').removeClass('sticky');
			<?php if (is_admin_bar_showing()) : ?>
				$('nav.header-nav').removeClass('ab');
			<?php endif; ?>
		}
	});
})(jQuery);
</script>
